﻿/*
--------------------------------------
File: MakeMonochrome.cs
Project: Themaopdracht 7
Author: Maarten Kroon

Description:
A algorithm which creates a monochrome version of the image
Needed for some of the algorithm's that use blobDetection
--------------------------------------
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;

namespace THO7_Team8
{
    class MakeMonochrome : VisionAlgorithm
    {
        public MakeMonochrome(String name)
            : base(name)
        {
            hasConfiguration = false;
        }
 
        public override System.Drawing.Bitmap DoAlgorithm(System.Drawing.Bitmap sourceImage)
        {
            Bitmap returnBitmap = new Bitmap(sourceImage);
            returnBitmap = MyImage.makeMonochrome(sourceImage);            
            return returnBitmap;
        }
    }
}






